package cn.kgc.ebook.ebookmanagement.service;

import cn.kgc.ebook.ebookmanagement.mapper.CategoryMapper;
import cn.kgc.ebook.ebookmanagement.pojo.Category;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author shkstart
 * @create 2020-05-18 16:41
 */
@Service
public class CategoryServiceImpl implements CategoryService {
    @Resource
    CategoryMapper categoryMapper;

    @Override
    public List<Category> selectAll() {
        List<Category> categoryList = categoryMapper.selectByExample(null);

        return categoryList;
    }
}
